package com.umakr.ax.app.web;

import java.util.Map;

import com.umakr.ax.common.service.PluginSignupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.ModelMap;
import com.umakr.ax.common.model.PluginSignup;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import com.umakr.ax.core.base.AbstractController;

/**
 * <p>
 * 暂定为报名 ，也可以为投票  前端控制器
 * </p>
 *
 * @author Umakr-Code-Generator
 * @since 2017-12-30
 */
@Controller
@RequestMapping("/api/web/pluginSignup")
public class PluginSignupWebController extends AbstractController {

	@Autowired
	PluginSignupService signupService;

	@ApiOperation(value = "优惠券列表")
	@GetMapping("/listPluginSignUp")
	@ResponseBody
	public Object listPluginSignUp(ModelMap modelMap,@RequestParam(name = "rsId") Long rsId) {
		return setSuccessModelMap(modelMap,signupService.listPluginSignUp(rsId));
	}
}